/*
 * Copyright 2010 Mark Eschbach.
 *
 * $HeadURL$
 * $Id$
 */
package com.meschbach.cise.resource;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

/**
 *
 * @author "Mark Eschbach" &lt;meschbach@gmail.com&gt;
 */
public class FileSource implements Source {

    File target;

    public FileSource(File target) {
        this.target = target;
    }

    public FileSource(String aFileName) {
        target = new File(aFileName);
    }

    public FileInputStream getSource() throws IOException {
        return new FileInputStream(target);
    }
}
